package com.cy.service;

import com.cy.pojo.Nuser;
import com.cy.pojo.UserVO;

import javax.validation.Valid;
import java.util.List;

public interface Nservice extends MyService {
    Nuser findById(Integer id);

    List<Nuser> findObjects();

    void saveUser(UserVO userVO);

    Nuser findByName(String name);

    int updateUser(Nuser nuser);

    int deleteUser(Integer id);

    int updateBatch(List<Integer> ids);

    int deleteBatch(@Valid List<Integer> ids);

    int saveBatchNuser(List<Nuser> nuserList);

    List<Nuser> findBatchNuser(List<Integer> ids);

    List<Nuser> findByNameColl(String name);
}
